package com.gmp.rooms.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gmp.common.annotation.Excel;
import com.gmp.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.Getter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 厂房信息目录对象 rooms
 *
 * @author Koi
 * @date 2025-07-28
 */
@Data
@Getter
@TableName(resultMap = "com.gmp.rooms.mapper.RoomsMapper.RoomsResult")
public class Rooms extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键ID（如UUID） */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 厂房编号
     */
    @Excel(name = "厂房编号")
    private String roomCode;

    /**
     * 厂房名称
     */
    @Excel(name = "厂房名称")
    private String roomName;


    /** 状态评估 */
    @Excel(name = "状态评估")
    private String stateEvaluation;

    /**
     * 照度标准值
     */
    @Excel(name = "照度标准值")
    private Long illuminanceStandard;

    /**
     * 建成日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "建成日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 逻辑删除标记：0-未删除，1-已删除 */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDelete;



    public void setRoomCode(String roomCode) {
        this.roomCode = roomCode;
    }

    public String getRoomCode() {
        return roomCode;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setIlluminanceStandard(Long illuminanceStandard) {
        this.illuminanceStandard = illuminanceStandard;
    }

    public Long getIlluminanceStandard() {
        return illuminanceStandard;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("roomCode", getRoomCode())
                .append("roomName", getRoomName())
                .append("illuminanceStandard", getIlluminanceStandard())
                .append("createdAt", getCreatedAt())
                .append("isDelete", getIsDelete())
                .append("id", getId())
                .toString();
    }
}

